package com.yigang.homecontroller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSON;
import com.yigang.entity.User;
import com.yigang.service.AlipayService;
import com.yigang.utils.UserConst;
@Controller
@RequestMapping("jiesuan")
public class JiesuanController {
	@Autowired
	AlipayService aliPayService;
	@RequestMapping("/zhifu")	
	public String Alipay(Model model,HttpServletRequest request, HttpSession session) {

                List<Map<String, Object>> jiesuanmoney = aliPayService.alipay();		
				
				 List<Map<String, Object>> dingdanbianhao = aliPayService.alipay1();
				 List<Map<String, Object>> shangpinmingzi = aliPayService.alipay2();
				 List<Map<String, Object>> alipay3 = aliPayService.alipay3();
				 List<Map<String, Object>> alipay4 = aliPayService.alipay4();
				 List<Map<String, Object>> alipay5 = aliPayService.alipay5();
				 
        		System.out.println(jiesuanmoney);
        		model.addAttribute("jiesuanmoney", jiesuanmoney);
        		model.addAttribute("dingdanbianhao", dingdanbianhao);
        		model.addAttribute("shangpinmingzi", shangpinmingzi);
        		model.addAttribute("alipay3", alipay3);
        		model.addAttribute("alipay4", alipay4);
        		model.addAttribute("alipay5", alipay5);
				
			
				 
//        		model.addAttribute("alipay", alipay);
                
        		return "jsp/home/jiesuan";
	}
}
